import java.util.*;


/*

	This Class implement the compare method
*/

public class IdComparator implements Comparator<Object>
{

	/*
		Compare Method compare empid and return which is greater
	*/
	public int compare(Object obj0,Object obj1) 
	{
		if(obj0!=null && obj1!=null)
		{
			int Empid1=((Salary)obj0).Empid;
			int Empid2=((Salary)obj1).Empid;
			if(Empid1>Empid2)
				return 1;
			else
				return 0;
			
			
		}
		return 0;
	}
}
